<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="/resources/admin/view/main/header.jsp"/>

<!-- business code start -->
<style>
li {list-style-type:none;}
</style>
<form id="frm_dealerImage" action="/dealer/addDealerImage" method="post" enctype="multipart/form-data" class="definewidth m20">
<table class="table table-bordered table-hover definewidth m10">
	<input type="hidden" id="dealerUuid" name="dealerUuid">
     <tr>
        <td class="tableleft">网点图片</td>
        <td>
        	<ul id="myfiles">
        		<li><input type="file" name="myfiles"/><button type="button" class="btn btn-primary" onClick="addFile(this)">添加</button></li>
        	</ul>
        </td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <input type="submit" class="btn btn-primary" value="保存"/> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>
<!-- business code end -->

<jsp:include page="/resources/admin/view/main/footer.jsp"/>

<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="<%=request.getContextPath()%>/resources/admin/view/udwin/dealer/listDealerImage.jsp?dealerUuid="+$("#uuid").val();
		 });

    });
</script>

<script src="<%=request.getContextPath()%>/resources/admin/js/business/udwin/dealer/dealerImage.js"></script>
